package io.dy.controller;

import io.dy.service.TaskRunServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dmj
 * @date 2024年04月18日 下午12:09
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/io/dy")
public class ThreadPoolController {

    private final TaskRunServiceImpl taskRunServiceImpl;

    @GetMapping
    public String start(){
        taskRunServiceImpl.runThread();
        return "success";
    }
}
